From d095cc6ff07307fa93f640cc6afb87420d331d38 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Wed, 24 Jan 2018 10:28:06 -0800 Subject: [PATCH] raftsnap: add "doc.go" Signed-off-by: Gyuho Lee --- raftsnap/doc.go | 17 +++++++++++++++++ raftsnap/snapshotter.go | 1 - 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 raftsnap/doc.go diff --git a/raftsnap/doc.go b/raftsnap/doc.go new file mode 100644 index 000000000..68026689e --- /dev/null +++ b/raftsnap/doc.go @@ -0,0 +1,17 @@ +// Copyright 2015 The etcd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Package raftsnap handles Raft nodes' states with snapshots. +// The snapshot logic is internal to etcd server and raft package. +package raftsnap diff --git a/raftsnap/snapshotter.go b/raftsnap/snapshotter.go index 474dd6d7c..228f1f6fb 100644 --- a/raftsnap/snapshotter.go +++ b/raftsnap/snapshotter.go @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// Package raftsnap stores raft nodes' states with snapshots. package raftsnap import (