MCPcopy Create free account
hub / github.com/F-Stack/f-stack / saveCommand

Function saveCommand

app/redis-6.2.6/src/rdb.c:2973–2985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2971}
2972
2973void saveCommand(client *c) {
2974 if (server.child_type == CHILD_TYPE_RDB) {
2975 addReplyError(c,"Background save already in progress");
2976 return;
2977 }
2978 rdbSaveInfo rsi, *rsiptr;
2979 rsiptr = rdbPopulateSaveInfo(&rsi);
2980 if (rdbSave(server.rdb_filename,rsiptr) == C_OK) {
2981 addReply(c,shared.ok);
2982 } else {
2983 addReplyErrorObject(c,shared.err);
2984 }
2985}
2986
2987/* BGSAVE [SCHEDULE] */
2988void bgsaveCommand(client *c) {

Callers

nothing calls this directly

Calls 5

addReplyErrorFunction · 0.85
rdbPopulateSaveInfoFunction · 0.85
rdbSaveFunction · 0.85
addReplyFunction · 0.85
addReplyErrorObjectFunction · 0.85

Tested by

no test coverage detected