mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
libctdb: fix writerecord() to actually write the record.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 680ee6afaa89f21115a1bf33a8b9e7e92084a1a1)
This commit is contained in:
parent
f2a33c1b51
commit
9f6d34150d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user