fixed ismastercmd
parent
bd6be4fe27
commit
0e2b60bf89
|
@ -22,8 +22,8 @@ TUPLE: mdb name nodes collections ;
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
||||||
: ismaster-cmd ( node -- result )
|
: ismaster-cmd ( node -- result )
|
||||||
binary "admin.$cmd" H{ { "ismaster" 1 } } <mdb-query-one-msg>
|
binary "admin.$cmd" H{ { "ismaster" 1 } } <mdb-query-msg>
|
||||||
'[ _ write-message read-message ] with-client
|
1 >>return# '[ _ write-message read-message ] with-client
|
||||||
objects>> first ;
|
objects>> first ;
|
||||||
|
|
||||||
: split-host-str ( hoststr -- host port )
|
: split-host-str ( hoststr -- host port )
|
||||||
|
|
Loading…
Reference in New Issue