aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
authoryulai.li <blacktear23@gmail.com>2022-06-27 10:57:24 +0800
committeryulai.li <blacktear23@gmail.com>2022-06-27 10:57:24 +0800
commit824cbe32becade3d8113bdae636bae706337cd9b (patch)
treef158bfebb2b836f7f5639a9a3a2f143b28499eac /weed
parent13159ad0d888c57901f405e1f883ed64101a637a (diff)
downloadseaweedfs-824cbe32becade3d8113bdae636bae706337cd9b.tar.xz
seaweedfs-824cbe32becade3d8113bdae636bae706337cd9b.zip
Make tikv filer enable/disable by build tags
Diffstat (limited to 'weed')
-rw-r--r--weed/filer/tikv/tikv.go5
-rw-r--r--weed/filer/tikv/tikv_store.go3
-rw-r--r--weed/filer/tikv/tikv_store_kv.go3
3 files changed, 9 insertions, 2 deletions
diff --git a/weed/filer/tikv/tikv.go b/weed/filer/tikv/tikv.go
index 8bb5dc577..ba1da27a8 100644
--- a/weed/filer/tikv/tikv.go
+++ b/weed/filer/tikv/tikv.go
@@ -1,5 +1,6 @@
-package tikv
-
/*
+ * Package tikv is for TiKV filer store.
* This empty file is let go build can work without tikv tag
+ * Using "make full_install" to enable TiKV filer store.
*/
+package tikv
diff --git a/weed/filer/tikv/tikv_store.go b/weed/filer/tikv/tikv_store.go
index f333af38e..f8932663d 100644
--- a/weed/filer/tikv/tikv_store.go
+++ b/weed/filer/tikv/tikv_store.go
@@ -1,3 +1,6 @@
+//go:build tikv
+// +build tikv
+
package tikv
import (
diff --git a/weed/filer/tikv/tikv_store_kv.go b/weed/filer/tikv/tikv_store_kv.go
index dcc9acf8c..1d9428c69 100644
--- a/weed/filer/tikv/tikv_store_kv.go
+++ b/weed/filer/tikv/tikv_store_kv.go
@@ -1,3 +1,6 @@
+//go:build tikv
+// +build tikv
+
package tikv
import (