|
When I insert single document with writeconcern w: with value bigger than my replSet count and I use wtimeout, I (of course) get error message:
WriteResult({
|
"nInserted" : 1,
|
"writeConcernError" : {
|
"code" : 64,
|
"errInfo" : {
|
"wtimeout" : true
|
},
|
"errmsg" : "waiting for replication timed out"
|
}
|
})
|
It would be nice to have value there, what tell how many acknowledges WAS returned before wtimeout occurred.
Like:
WriteResult({
|
"nInserted" : 1,
|
"nAcknowledged" : 3,
|
"writeConcernError" : {
|
"code" : 64,
|
"errInfo" : {
|
"wtimeout" : true
|
},
|
"errmsg" : "waiting for replication timed out"
|
}
|
})
|
|