server: when we migrate off a record with data, set the MIGRATED_WITH_DATA flag
authorMichael Adam <obnox@samba.org>
Fri, 3 Dec 2010 14:21:51 +0000 (15:21 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Mar 2011 22:43:35 +0000 (23:43 +0100)
server/ctdb_call.c

index be6e8f93d2d1f1242975f4b065337fc0753f2231..813e3cf9fe6441ff50407863fd3af1ccfa9ba093 100644 (file)
@@ -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);