leveldb
Classes | Functions
leveldb::anonymous_namespace{leveldbutil.cc} Namespace Reference

Classes

class  StdoutPrinter
 

Functions

bool HandleDumpCommand (Env *env, char **files, int num)
 

Function Documentation

§ HandleDumpCommand()

bool leveldb::anonymous_namespace{leveldbutil.cc}::HandleDumpCommand ( Env env,
char **  files,
int  num 
)

Definition at line 24 of file leveldbutil.cc.

24  {
25  StdoutPrinter printer;
26  bool ok = true;
27  for (int i = 0; i < num; i++) {
28  Status s = DumpFile(env, files[i], &printer);
29  if (!s.ok()) {
30  fprintf(stderr, "%s\n", s.ToString().c_str());
31  ok = false;
32  }
33  }
34  return ok;
35 }
Status DumpFile(Env *env, const std::string &fname, WritableFile *dst)
Definition: dumpfile.cc:210
Here is the call graph for this function:
Here is the caller graph for this function: