Partially revert metadata format changes in 6c94114148c4.
[cumulus.git] / metadata.cc
index 2517d73..86d02aa 100644 (file)
@@ -162,7 +162,7 @@ bool MetadataWriter::find(const string& path)
 {
     const char *path_str = path.c_str();
     while (!old_metadata_eof) {
-        string old_path = uri_decode(old_metadata["path"]);
+        string old_path = uri_decode(old_metadata["name"]);
         int cmp = pathcmp(old_path.c_str(), path_str);
         if (cmp == 0) {
             found_match = true;