couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject couchdb commit: updated refs/heads/master to 2a12d72
Date Sun, 03 May 2015 21:22:06 GMT
Repository: couchdb
Updated Branches:
  refs/heads/master 2173dc9ce -> 2a12d72a2


add no-join option

in order to make testing `/_setup_cluster` easier

PR: #315
PR-URL: https://github.com/apache/couchdb/pull/315
Reviewed-By: Alexander Shorin <kxepal@apache.org>


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

Branch: refs/heads/master
Commit: 2a12d72a27796c9e1315ca0f8b021e513cd6b773
Parents: 2173dc9
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Mon Apr 27 14:48:38 2015 +0200
Committer: Robert Kowalski <rok@kowalski.gd>
Committed: Sun May 3 23:19:51 2015 +0200

----------------------------------------------------------------------
 dev/run | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/2a12d72a/dev/run
----------------------------------------------------------------------
diff --git a/dev/run b/dev/run
index e273290..bd15472 100755
--- a/dev/run
+++ b/dev/run
@@ -105,12 +105,17 @@ def setup_argparse():
                       dest='with_admin_party', default=False,
                       action='store_true',
                       help='Runs a dev cluster with admin party mode on')
+    parser.add_option('--no-join',
+                      dest='no_join', default=False,
+                      action='store_true',
+                      help='Do not join nodes on boot')
     return parser.parse_args()
 
 
 def setup_context(opts, args):
     fpath = os.path.abspath(__file__)
     return {'N': opts.nodes,
+            'no_join': opts.no_join,
             'with_admin_party': opts.with_admin_party,
             'admin': opts.admin.split(':', 1) if opts.admin else None,
             'nodes': ['node%d' % (i + 1) for i in range(opts.nodes)],
@@ -249,6 +254,8 @@ def startup(ctx):
     atexit.register(kill_processes, ctx)
     boot_nodes(ctx)
     ensure_all_nodes_alive(ctx)
+    if ctx['no_join']:
+        return
     if ctx['with_admin_party']:
         cluster_setup_with_admin_party(ctx)
     else:


Mime
View raw message