git.samba.org
/
sahlberg
/
ctdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove LACOUNT and LACCESSOR and migrate the records immediately.
[sahlberg/ctdb.git]
/
libctdb
/
local_tdb.c
diff --git
a/libctdb/local_tdb.c
b/libctdb/local_tdb.c
index 9a19df7c08bd073b57474a0d69b45fe581d8d457..705be2b548fb9a636cde77133414ec9e4689a02b 100644
(file)
--- a/
libctdb/local_tdb.c
+++ b/
libctdb/local_tdb.c
@@
-89,6
+89,8
@@
int ctdb_local_store(struct tdb_context *tdb, TDB_DATA key,
errno = ENOMEM;
return -1;
}
+ memcpy(rec.dptr, header, sizeof(*header));
+ memcpy(rec.dptr + sizeof(*header), data.dptr, data.dsize);
ret = tdb_store(tdb, key, rec, TDB_REPLACE);
free(old.dptr);