aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/dirty_pages.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-05-09 15:33:01 -0700
committerChris Lu <chris.lu@gmail.com>2021-05-09 15:33:01 -0700
commit50be19d23e4f8019822115ab0abd9adbb4fbeda2 (patch)
tree0da26e8d849cede31368e1635c00f84caf532066 /weed/filesys/dirty_pages.go
parent55e060cf619d07f47c0fa1f6e7bf74f94130edec (diff)
downloadseaweedfs-50be19d23e4f8019822115ab0abd9adbb4fbeda2.tar.xz
seaweedfs-50be19d23e4f8019822115ab0abd9adbb4fbeda2.zip
refactor
Diffstat (limited to 'weed/filesys/dirty_pages.go')
-rw-r--r--weed/filesys/dirty_pages.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/weed/filesys/dirty_pages.go b/weed/filesys/dirty_pages.go
new file mode 100644
index 000000000..c056a09ba
--- /dev/null
+++ b/weed/filesys/dirty_pages.go
@@ -0,0 +1,8 @@
+package filesys
+
+type DirtyPages interface {
+ AddPage(offset int64, data []byte)
+ FlushData() error
+ ReadDirtyDataAt(data []byte, startOffset int64) (maxStop int64)
+ GetStorageOptions() (collection, replication string)
+}