diff options
author | Michael Adam <obnox@samba.org> | 2010-12-03 15:21:51 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-03-14 13:35:43 +0100 |
commit | 64fc05e5620e1e19ec6246a40259315d535c3eb6 (patch) | |
tree | 771482145833ed74005ac81cb2694d80c832815f /ctdb/server/ctdb_call.c | |
parent | 3cb3620acfd32ca402353e209e08ffbc3b420de1 (diff) | |
download | samba-64fc05e5620e1e19ec6246a40259315d535c3eb6.tar.gz samba-64fc05e5620e1e19ec6246a40259315d535c3eb6.tar.xz samba-64fc05e5620e1e19ec6246a40259315d535c3eb6.zip |
server: when we migrate off a record with data, set the MIGRATED_WITH_DATA flag
(This used to be ctdb commit f5fb232117886186066ab3430fdd2307cba94960)
Diffstat (limited to 'ctdb/server/ctdb_call.c')
-rw-r--r-- | ctdb/server/ctdb_call.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_call.c b/ctdb/server/ctdb_call.c index e188fcfcde..14e2381a71 100644 --- a/ctdb/server/ctdb_call.c +++ b/ctdb/server/ctdb_call.c @@ -222,6 +222,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); |