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

Function rdbLoadS3Core

src/rdb-s3.cpp:59–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59int rdbLoadS3Core(int fd, rdbSaveInfo *rsi, int rdbflags)
60{
61 FILE *fp;
62 rio rdb;
63 int retval;
64
65 if ((fp = fdopen(fd, "rb")) == NULL) return C_ERR;
66 startLoading(0, rdbflags);
67 rioInitWithFile(&rdb,fp);
68 retval = rdbLoadRio(&rdb,rdbflags,rsi);
69 fclose(fp);
70 stopLoading(retval == C_OK);
71 return retval;
72}
73
74int rdbLoadS3(char *s3bucket, rdbSaveInfo *rsi, int rdbflags)
75{

Callers 1

rdbLoadS3Function · 0.85

Calls 4

startLoadingFunction · 0.85
rioInitWithFileFunction · 0.85
rdbLoadRioFunction · 0.85
stopLoadingFunction · 0.85

Tested by

no test coverage detected