Fixed migration bug
authorJeroen van der Heijden <jeroen@transceptor.technology>
Tue, 15 Sep 2020 09:09:58 +0000 (11:09 +0200)
committerJeroen van der Heijden <jeroen@transceptor.technology>
Tue, 15 Sep 2020 09:09:58 +0000 (11:09 +0200)
src/siri/db/shards.c

index b7c061e7cffeeabc0f58d44145f5035cf95faa44..3980bd4dd866ff47e4d4d79d9c74f3b36124a639 100644 (file)
@@ -43,7 +43,7 @@ static bool SHARDS_must_migrate_shard(
         return false;
     }
 
-    *shard_id = strtoull(fn, &tmp, 16);
+    *shard_id = strtoull(fn, &tmp, 10);
 
     if (tmp == NULL)
     {
@@ -186,7 +186,7 @@ int siridb_shards_load(siridb_t * siridb)
                     ".sdb",
                     &shard_id))
             {
-                log_info("Migrate shard: '%s'", base_fn);
+                log_warning("Migrate shard: '%s'", base_fn);
                 if (siridb_shard_migrate(siridb, shard_id, &duration))
                 {
                     log_error("Error while migrating shard: '%s'", base_fn);