MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / signalFlushedDb

Function signalFlushedDb

src/db.cpp:758–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758void signalFlushedDb(int dbid, int async) {
759 int startdb, enddb;
760 if (dbid == -1) {
761 startdb = 0;
762 enddb = cserver.dbnum-1;
763 } else {
764 startdb = enddb = dbid;
765 }
766
767 for (int j = startdb; j <= enddb; j++) {
768 touchAllWatchedKeysInDb(g_pserver->db[j], NULL);
769 }
770
771 trackingInvalidateKeysOnFlush(async);
772}
773
774/*-----------------------------------------------------------------------------
775 * Type agnostic commands operating on the key space

Callers 1

emptyDbFunction · 0.85

Calls 2

touchAllWatchedKeysInDbFunction · 0.85

Tested by

no test coverage detected