summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builder.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2014-08-04 17:54:34 -0400
committerAndrew Morrow <acm@mongodb.com>2014-08-05 07:06:36 -0400
commit931f48190b276dd783d76ae4071228d6ab1f0bfd (patch)
tree9963cbc9cebbf094aa922f0e9d78bbe94f6a5a81 /src/mongo/db/index_builder.cpp
parentc13eefdea68c0d493892014d42d8c4bbe687d4c3 (diff)
downloadmongo-931f48190b276dd783d76ae4071228d6ab1f0bfd.tar.gz
SERVER-6018 Replace AtomicUInt with AtomicUInt32
Diffstat (limited to 'src/mongo/db/index_builder.cpp')
-rw-r--r--src/mongo/db/index_builder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index_builder.cpp b/src/mongo/db/index_builder.cpp
index c6112291149..78af3691d3c 100644
--- a/src/mongo/db/index_builder.cpp
+++ b/src/mongo/db/index_builder.cpp
@@ -44,11 +44,11 @@ namespace mongo {
MONGO_LOG_DEFAULT_COMPONENT_FILE(::mongo::logger::LogComponent::kIndexing);
- AtomicUInt IndexBuilder::_indexBuildCount = 0;
+ AtomicUInt32 IndexBuilder::_indexBuildCount;
IndexBuilder::IndexBuilder(const BSONObj& index) :
BackgroundJob(true /* self-delete */), _index(index.getOwned()),
- _name(str::stream() << "repl index builder " << (_indexBuildCount++).get()) {
+ _name(str::stream() << "repl index builder " << _indexBuildCount.addAndFetch(1)) {
}
IndexBuilder::~IndexBuilder() {}