git.samba.org
/
metze
/
ctdb
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
server: when we migrate off a record with data, set the MIGRATED_WITH_DATA flag
[metze/ctdb/wip.git]
/
server
/
ctdb_call.c
diff --git
a/server/ctdb_call.c
b/server/ctdb_call.c
index c5f7e7d43041bb88d810009e2b1dbe0953208de9..f3d93a8d972001abbd272db114972c3125304c7c 100644
(file)
--- a/
server/ctdb_call.c
+++ b/
server/ctdb_call.c
@@
-201,6
+201,10
@@
static void ctdb_call_send_dmaster(struct ctdb_db_context *ctdb_db,
return;
}
+ if (data->dsize != 0) {
+ header->flags &= CTDB_REC_FLAG_MIGRATED_WITH_DATA;
+ }
+
if (lmaster == ctdb->pnn) {
ctdb_send_dmaster_reply(ctdb_db, header, *key, *data,
c->hdr.srcnode, c->hdr.reqid);