mirror of https://gitee.com/bigwinds/arangodb
Fixed a logic bug to identify if a collection is a shard or a real local collection on DBServer
This commit is contained in:
parent
4175c6eb65
commit
d7bdf8e066
|
@ -264,7 +264,7 @@ std::string CollectionNameResolver::localNameLookup(TRI_voc_cid_t cid) const {
|
||||||
auto it = _vocbase->_collectionsById.find(cid);
|
auto it = _vocbase->_collectionsById.find(cid);
|
||||||
|
|
||||||
if (it != _vocbase->_collectionsById.end()) {
|
if (it != _vocbase->_collectionsById.end()) {
|
||||||
if ((*it).second->planId() != (*it).second->cid()) {
|
if ((*it).second->planId() == (*it).second->cid()) {
|
||||||
// DBserver local case
|
// DBserver local case
|
||||||
name = (*it).second->name();
|
name = (*it).second->name();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue