From c63dab9763d45fd4f9be77b9c9f463bd457de808 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 3 Dec 2010 15:21:51 +0100 Subject: [PATCH] server: when we migrate off a record with data, set the MIGRATED_WITH_DATA flag --- server/ctdb_call.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/ctdb_call.c b/server/ctdb_call.c index d6c08666..ed741ed0 100644 --- 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); -- 2.34.1