From: CS <cslecl...@gmail.com>
Date: Fri, 12 Oct 2012 17:35:49 -0700 (PDT)
Local: Fri, Oct 12 2012 8:35 pm
Subject: Error when creating custom write concern using tags
I'm having some trouble creating a custom write concern using tags in 2.0.7 "errmsg" : "exception: mode { dc: 2.0 } requires 2 tagged with dc, but only However, there is more than 2 dc tags in the config: } Trying to create the write concern: rs_intg:PRIMARY> cfg = rs.conf() ... rs_intg:PRIMARY> cfg.settings = { getLastErrorModes : { production : { dc: 2 } } } { "getLastErrorModes" : { "production" : { "dc" : 2 } } } rs_intg:PRIMARY> rs.reconfig(cfg) { * "errmsg" : "exception: mode { dc: 2.0 } requires 2 tagged with dc, but only 1 with this tag were found",* "code" : 14831, "ok" : 0 } But if I set it to 1, then it works: rs_intg:PRIMARY> cfg.settings = { getLastErrorModes : { production : { dc: 1 } } } { "getLastErrorModes" : { "production" : { "dc" : 1 } } } rs_intg:PRIMARY> rs.reconfig(cfg) { "ok" : 1 } The status appears to be ok: "_id" : 1, } Any suggestions appreciated, thanks! cs You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||