Branch: Tag:

2020-06-07

2020-06-07 07:12:11 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Catch very fast resync responses.

568:    resynced = Thread.Condition();    resyncmux = Thread.Mutex();    } +  Thread.MutexKey lock = resyncmux->lock();    proxy.readyforquery_cb = resync_cb;    proxy.sendsync(); -  if (proxy.readyforquery_cb) { -  Thread.MutexKey lock = resyncmux->lock(); +     resynced.wait(lock); // Wait for the db to finish    } -  } +     return;    };    PD("%O\n", err);