ovsdb-tool: Put version number in comment when compacting or converting.
authorBen Pfaff <blp@nicira.com>
Thu, 7 Jul 2011 19:25:04 +0000 (12:25 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 7 Jul 2011 19:25:04 +0000 (12:25 -0700)
Adding the version number can make it clear what version of OVS screwed
something up as part of an upgrade or downgrade.

ovsdb/ovsdb-tool.c

index 07d27293cfbf62b475de658be9eaac52f35c61d7..822eb6b2edc68e6b5abcd9a0d63cf0531e27baba 100644 (file)
@@ -228,7 +228,8 @@ compact_or_convert(const char *src_name, const char *dst_name,
 static void
 do_compact(int argc OVS_UNUSED, char *argv[])
 {
-    compact_or_convert(argv[1], argv[2], NULL, "compacted by ovsdb-tool");
+    compact_or_convert(argv[1], argv[2], NULL,
+                       "compacted by ovsdb-tool "VERSION BUILDNR);
 }
 
 static void
@@ -239,7 +240,7 @@ do_convert(int argc OVS_UNUSED, char *argv[])
 
     check_ovsdb_error(ovsdb_schema_from_file(schema_file_name, &new_schema));
     compact_or_convert(argv[1], argv[3], new_schema,
-                       "converted by ovsdb-tool");
+                       "converted by ovsdb-tool "VERSION BUILDNR);
     ovsdb_schema_destroy(new_schema);
 }