mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Upload binary via scp
This commit is contained in:
parent
c506e3218b
commit
e9e9a7d7d5
@ -19,12 +19,17 @@
|
||||
[url]
|
||||
(non-precise-cached-wget! url))
|
||||
|
||||
(defn get-clickhouse-scp
|
||||
[path]
|
||||
(c/upload path (str common-prefix "/clickhouse")))
|
||||
|
||||
(defn download-clickhouse
|
||||
[source]
|
||||
(info "Downloading clickhouse from" source)
|
||||
(cond
|
||||
(clojure.string/starts-with? source "rbtorrent:") (get-clickhouse-sky source)
|
||||
(clojure.string/starts-with? source "http") (get-clickhouse-url source)
|
||||
(.exists (io/file source)) (get-clickhouse-scp source)
|
||||
:else (throw (Exception. (str "Don't know how to download clickhouse from" source)))))
|
||||
|
||||
(defn unpack-deb
|
||||
|
@ -72,7 +72,7 @@ ZooKeeperRequestPtr CreateRequestGenerator::generate()
|
||||
plength = *path_length;
|
||||
auto path_candidate = generateRandomPath(path_prefix, plength);
|
||||
|
||||
while(paths_created.count(path_candidate))
|
||||
while (paths_created.count(path_candidate))
|
||||
path_candidate = generateRandomPath(path_prefix, plength);
|
||||
|
||||
paths_created.insert(path_candidate);
|
||||
|
Loading…
Reference in New Issue
Block a user