We can't mix RMW and DELAYED in the same PG without screwing
up the ordering of writes, the pg log, and so forth.
So force RMW throughout. This won't affect the mds log
appends because the client is constant. It will slow down
concurrent writes to the same object by multiple clients, but
we don't have many (any?) of those yet.
This needs a real solution... :/
bool try_write(entity_inst_t& c) {
switch (state) {
case IDLE:
- state = DELAYED;
+ //state = DELAYED;
+ state = RMW; // always do RMW, until we solve pg log writing ordering issues
case DELAYED:
return true;
case RMW: