MCPcopy
hub / github.com/alibaba/MongoShake / _get_mongodb_addr

Function _get_mongodb_addr

scripts/run_sys_test.py:79–86  ·  view source on GitHub ↗
(src_url)

Source from the content-addressed store, hash-verified

77
78
79def _get_mongodb_addr(src_url):
80 if "#" in src_url:
81 # sharding
82 role_lists = src_url.split("#")
83 return role_lists[0]
84 elif "^" in src_url:
85 return src_url.split("^")[1]
86 return src_url
87
88
89"""

Callers 2

run_full_syncFunction · 0.85
run_incr_syncFunction · 0.85

Calls 1

splitMethod · 0.65

Tested by

no test coverage detected