MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / indexStatus

Function indexStatus

src/MetadataManager.actor.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55IndexInfo::IndexStatus indexStatus(const bson::BSONObj& indexObj) {
56 const char* statusField = indexObj.getStringField(DocLayerConstants::STATUS_FIELD);
57 if (strcmp(statusField, DocLayerConstants::INDEX_STATUS_READY) == 0)
58 return IndexInfo::IndexStatus::READY;
59 else if (strcmp(statusField, DocLayerConstants::INDEX_STATUS_BUILDING) == 0)
60 return IndexInfo::IndexStatus::BUILDING;
61 else
62 return IndexInfo::IndexStatus::INVALID;
63}
64
65Reference<IndexInfo> MetadataManager::indexInfoFromObj(const bson::BSONObj& indexObj,
66 Reference<UnboundCollectionContext> cx) {

Callers 1

indexInfoFromObjMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected