*/
switch (c->opcode) {
case CTDB_CONTROL_PERSISTENT_STORE:
+ if (ctdb_db->transaction_active) {
+ DEBUG(DEBUG_ERR, (__location__ " trans2_commit client db_id[%d] transaction active - refusing persistent store\n",
+ client->db_id));
+ return -1;
+ }
if (client->num_persistent_updates > 0) {
client->num_persistent_updates--;
}