After entry operations are synced and stack is empty,
mark the crawl as finished so the data sync threads'
wait logic works correctly and doesn't indefinitely wait.
Fixes: https://tracker.ceph.com/issues/73452
Signed-off-by: Kotresh HR <khiremat@redhat.com>
m_sync_stack.pop();
}
+
+ // Crawl and entry operations are done syncing here. So mark crawl finished here
+ mark_crawl_finished();
}
PeerReplayer::RemoteSync::RemoteSync(MountRef local, MountRef remote, FHandles *fh,
m_sync_stack.pop();
}
+
+ // Crawl and entry operations are done syncing here. So mark stack finished here
+ mark_crawl_finished();
}
int PeerReplayer::do_synchronize(const std::string &dir_root, const Snapshot ¤t,