-
Notifications
You must be signed in to change notification settings - Fork 40
/
const.go
60 lines (56 loc) · 3.07 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package sqldb
// define table name constant.
const (
// UploadObjectProgressTableName defines the gc object task table name.
UploadObjectProgressTableName = "upload_object_progress"
// GCObjectProgressTableName defines the gc object task table name.
GCObjectProgressTableName = "gc_object_progress"
// PieceHashTableName defines the piece hash table name.
PieceHashTableName = "piece_hash"
// IntegrityMetaTableName defines the integrity meta table name.
IntegrityMetaTableName = "integrity_meta"
ShadowIntegrityMetaTableName = "shadow_integrity_meta"
// SpInfoTableName defines the SP info table name.
SpInfoTableName = "sp_info"
// StorageParamsTableName defines the storage params info table name.
StorageParamsTableName = "storage_params"
// BucketTrafficTableName defines the bucket traffic table name, which is used for recoding the used quota by bucket.
BucketTrafficTableName = "bucket_traffic"
// ReadRecordTableName defines the read record table name.
ReadRecordTableName = "read_record"
// ServiceConfigTableName defines the SP configuration table name.
ServiceConfigTableName = "service_config"
// OffChainAuthKeyTableName defines the off chain auth key table name.
OffChainAuthKeyTableName = "off_chain_auth_key"
// PutObjectSuccessTableName defines the event of successfully putting object
PutObjectSuccessTableName = "put_object_success_event_log"
// PutObjectEventTableName defines the event of putting object
PutObjectEventTableName = "put_object_event_log"
// UploadTimeoutTableName defines the event of uploading object to primary sp timeout
UploadTimeoutTableName = "upload_timeout_event_log"
// UploadFailedTableName defines the event of unsuccessfully uploading object to primary sp
UploadFailedTableName = "upload_failed_event_log"
// ReplicateTimeoutTableName defines the event of replicating object to secondary sp timeout
ReplicateTimeoutTableName = "replicate_timeout_event_log"
// ReplicateFailedTableName defines the event of unsuccessfully uploading object to secondary sp
ReplicateFailedTableName = "replicate_failed_event_log"
// SealTimeoutTableName defines the event of sealing object timeout
SealTimeoutTableName = "seal_timeout_event_log"
// SealFailedTableName defines the event of unsuccessfully sealing object timeout
SealFailedTableName = "seal_failed_event_log"
// MigrateSubscribeProgressTableName defines the progress of subscribe migrate event.
MigrateSubscribeProgressTableName = "migrate_subscribe_progress"
// SwapOutTableName is the swap out unit table.
SwapOutTableName = "swap_out_unit"
// MigrateGVGTableName defines the progress of subscribe migrate event.
MigrateGVGTableName = "migrate_gvg"
// RecoverGVGStatsTableName is for successor SP to keep track of recovering objects in a virtual group family
RecoverGVGStatsTableName = "recover_gvg_stats"
RecoverFailedObjectTableName = "recover_failed_object"
// MigrateBucketProgressTableName defines the progress of migrate bucket.
MigrateBucketProgressTableName = "migrate_bucket_progress"
)
// define error name constant.
const (
TableAlreadyExistsErrorPrefix = "Error 1050 (42S01)"
)