Skip to content

Commit 3d02533

Browse files
dongxinEricapkar
authored andcommitted
Fixed the bug where sometimes DocLayer returned the counter as a string. (#168)
1 parent 5cdb3e1 commit 3d02533

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ExtCmd.actor.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,9 +1007,11 @@ ACTOR static Future<Reference<ExtMsgReply>> deleteAndReply(Reference<ExtConnecti
10071007
for (auto& writeError : ret.writeErrors) {
10081008
arrayBuilder << writeError;
10091009
}
1010-
reply->addDocument(BSON("ok" << 1 << "n"
1011-
<< "0"
1012-
<< "writeErrors" << arrayBuilder.arr()));
1010+
// clang-format off
1011+
reply->addDocument(BSON("ok" << 1 <<
1012+
"n" << 0 <<
1013+
"writeErrors" << arrayBuilder.arr()));
1014+
// clang-format on
10131015
}
10141016
return reply;
10151017
}

0 commit comments

Comments
 (0)