Implement FileWatcher

This commit is contained in:
Ben Johnson
2022-02-06 09:27:26 -07:00
parent 8009bcf654
commit 762c7ae531
15 changed files with 1132 additions and 53 deletions

View File

@@ -662,7 +662,7 @@ func (r *Replica) monitor(ctx context.Context) {
}
// Fetch new notify channel before replicating data.
notify = r.db.Notify()
notify = r.db.WALNotify()
// Synchronize the shadow wal into the replication directory.
if err := r.Sync(ctx); err != nil {