* handling of the statcache, and re-use of metadata between snapshots.
*/
+#include <stdlib.h>
+#include <string.h>
#include <string>
#include <iostream>
#include <map>
string result;
if (dict.find("name") != dict.end()) {
- result += "name: " + dict.at("name") + "\n";
+ result += "name: " + dict.find("name")->second + "\n";
}
for (map<string, string>::const_iterator i = dict.begin();
if (statcache_out == NULL) {
fprintf(stderr, "Error opening statcache %s: %m\n",
statcache_tmp_path.c_str());
- throw IOException("Error opening statcache");
+ fatal("Error opening statcache");
}
old_metadata_eof = false;