-
Type:
Question
-
Resolution: Won't Fix
-
Priority:
Major - P3
-
None
-
Affects Version/s: 1.9.2
-
Component/s: None
-
None
If you call getlasterror on a new connection to the database, you'll get an error because no writes have been issued.
But the semantics of getlasterror are evolving, since you can now use it to wait for secondaries to catch up with the latest write.
So the question is this: if using getlasterror with a 'w' value, does it make sense to block until the latest operation applied to the primary's oplog has been replicated? I think it might.