git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
930996d
)
server: when we migrate off a record with data, set the MIGRATED_WITH_DATA flag
author
Michael Adam
<obnox@samba.org>
Fri, 3 Dec 2010 14:21:51 +0000
(15:21 +0100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 7 Dec 2010 04:31:42 +0000
(15:31 +1100)
server/ctdb_call.c
patch
|
blob
|
history
diff --git
a/server/ctdb_call.c
b/server/ctdb_call.c
index d6c08666a6c28fc22403f3745dc48853daf1eeaa..ed741ed0a9d5f4cd7a6b9bf26836b4ee8760265d 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);