-
Type:
Bug
-
Resolution: Done
-
Priority:
Critical - P2
-
Affects Version/s: 2.2.0-rc0
-
Component/s: None
-
None
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
From primary log:
Thu Jul 19 12:24:46 [conn2] info: indexing in foreground on this replica; was a background index build on the primary
Error in logic,
if (background && ((!theReplSet && cc().isSyncThread()) || (theReplSet && !theReplSet->isSecondary()))) {
in pdfile.cpp should be something like:
if (background && ((!theReplSet && cc().isSyncThread()) ||
(theReplSet && !theReplSet->isPrimary() && !theReplSet->isSecondary()))) {