1
0
Fork 0

remove unnecessary code

This commit is contained in:
Jan Christoph Uhde 2017-04-28 14:44:04 +02:00
parent d76e85efea
commit cb868d36a9
1 changed files with 4 additions and 0 deletions

View File

@ -935,6 +935,7 @@ int ContinuousSyncer::applyLog(SimpleHttpResult* response,
p = q + 1;
VPackSlice const slice = builder->slice();
LOG_TOPIC(ERR, Logger::FIXME) << builder->slice().toJson();
if (!slice.isObject()) {
errorMsg = "received invalid JSON data";
@ -944,6 +945,9 @@ int ContinuousSyncer::applyLog(SimpleHttpResult* response,
int res;
bool skipped;
LOG_TOPIC(ERR, Logger::FIXME) << slice.toJson();
if (skipMarker(firstRegularTick, slice)) {
// entry is skipped
res = TRI_ERROR_NO_ERROR;