You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/28 14:22:57 UTC

[37/50] mem3 commit: updated refs/heads/master to 64c0c74

Allow for rebalancing "special" DBs

For example, _replicator or _users.

BugzID: 24612


Project: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/commit/781dc89a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/tree/781dc89a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/diff/781dc89a

Branch: refs/heads/master
Commit: 781dc89ac7c67264d4985418e394b5b668228f60
Parents: f9c06d6
Author: Adam Kocoloski <ad...@cloudant.com>
Authored: Wed Oct 30 17:43:40 2013 -0400
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Jul 23 18:46:27 2014 +0100

----------------------------------------------------------------------
 src/mem3_rebalance.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/781dc89a/src/mem3_rebalance.erl
----------------------------------------------------------------------
diff --git a/src/mem3_rebalance.erl b/src/mem3_rebalance.erl
index f00201a..d85e8c2 100644
--- a/src/mem3_rebalance.erl
+++ b/src/mem3_rebalance.erl
@@ -481,7 +481,7 @@ print({Op, Shard, TargetNode} = Operation) ->
     ),
     {match, [Range, Account, DbName]} = re:run(
         Shard#shard.name,
-        "shards/(?<range>[0-9a-f\-]+)/(?<account>.+)/(?<dbname>[a-z][a-z0-9\\_\\$()\\+\\-\\/]+)\.[0-9]{8}",
+        "shards/(?<range>[0-9a-f\-]+)/(?<account>.+)/(?<dbname>[a-z\\_][a-z0-9\\_\\$()\\+\\-\\/]+)\.[0-9]{8}",
         [{capture, all_but_first, binary}]
     ),
     OpName = case Op of move -> move2; _ -> Op end,