Skip to content
Snippets Groups Projects
Commit fd9e4901 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Fix gh-1827 "master's segfault when starting replication from it"

parent 1d28e876
No related branches found
No related tags found
No related merge requests found
......@@ -437,10 +437,12 @@ SophiaEngine::join(struct relay *relay)
char id[128];
snprintf(id, sizeof(id), "view.%" PRIu64, signt);
void *snapshot = sp_getobject(env, id);
assert(snapshot != NULL);
/* iterate through a list of databases which took a
* part in the snapshot */
if (snapshot == NULL)
return;
/*
* Iterate through a list of databases which took a
* part in the snapshot.
*/
void *db;
void *db_cursor = sp_getobject(snapshot, "db");
if (db_cursor == NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment