instead of sleeping 1 second, sleep between 1 and 100 milliseconds
Michael
CTDB_CURRENT_NODE,
ctdb_db->db_id);
if (status == 1) {
+ unsigned long int usec = (1000 + random()) % 100000;
DEBUG(DEBUG_NOTICE, (__location__ " transaction is active "
- "on db_id[0x%08x]. waiting for 1 second\n",
- ctdb_db->db_id));
+ "on db_id[0x%08x]. waiting for %lu "
+ "microseconds\n",
+ ctdb_db->db_id, usec));
talloc_free(tmp_ctx);
- sleep(1);
+ usleep(usec);
goto again;
}