diff options
Diffstat (limited to 'src/mongo/db/repl/hello_response.cpp')
-rw-r--r-- | src/mongo/db/repl/hello_response.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/repl/hello_response.cpp b/src/mongo/db/repl/hello_response.cpp index 89ae3426073..a62463cca33 100644 --- a/src/mongo/db/repl/hello_response.cpp +++ b/src/mongo/db/repl/hello_response.cpp @@ -177,11 +177,11 @@ void HelloResponse::addToBSON(BSONObjBuilder* builder, bool useLegacyResponseFie builder->append(kBuildIndexesFieldName, _buildIndexes); if (_secondaryDelaySecsSet) { if (useLegacyResponseFields) { - builder->appendIntOrLL(kSlaveDelayFieldName, - durationCount<Seconds>(_secondaryDelaySecs)); + builder->appendNumber(kSlaveDelayFieldName, + durationCount<Seconds>(_secondaryDelaySecs)); } else { - builder->appendIntOrLL(kSecondaryDelaySecsFieldName, - durationCount<Seconds>(_secondaryDelaySecs)); + builder->appendNumber(kSecondaryDelaySecsFieldName, + durationCount<Seconds>(_secondaryDelaySecs)); } } if (_tagsSet) { |