s3:dbwrap_ctdb: increase the rsn of the __transaction_lock__ when storing
[amitay/samba.git] / source3 / lib / dbwrap_ctdb.c
index 8563990a84fa15979c6422e1b35b8ea00b5d5368..9e57aadb258372b8f3f97848593b3bc76c8cb2bf 100644 (file)
@@ -381,6 +381,8 @@ again:
        pid = getpid();
        data.dptr = (unsigned char *)&pid;
        data.dsize = sizeof(pid_t);
        pid = getpid();
        data.dptr = (unsigned char *)&pid;
        data.dsize = sizeof(pid_t);
+       crec->header.rsn++;
+       crec->header.dmaster = get_my_vnn();
        status = db_ctdb_ltdb_store(ctx, key, &(crec->header), data);
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0, (__location__ " Failed to store pid in transaction "
        status = db_ctdb_ltdb_store(ctx, key, &(crec->header), data);
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0, (__location__ " Failed to store pid in transaction "