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>
Mon, 14 Mar 2011 12:35:43 +0000 (13:35 +0100)
(This used to be ctdb commit f5fb232117886186066ab3430fdd2307cba94960)

ctdb/server/ctdb_call.c

index e188fcfcded1216218ef3783a111727d998b4d50..14e2381a71c1cb3ce5a35155b9c2d77965feb9c1 100644 (file)
@@ -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);