mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-29 08:27:06 +00:00
move ecsotre/error to common
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
use crate::disk::FileInfoVersions;
|
||||
use crate::file_meta_inline::InlineData;
|
||||
use crate::store_api::RawFileInfo;
|
||||
use crate::store_err::StorageError;
|
||||
use crate::{
|
||||
disk::error::DiskError,
|
||||
store_api::{ErasureInfo, FileInfo, ObjectPartInfo, ERASURE_ALGORITHM},
|
||||
};
|
||||
use byteorder::ByteOrder;
|
||||
use common::error::{Error, Result};
|
||||
use rmp::Marker;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::cmp::Ordering;
|
||||
@@ -11,16 +20,6 @@ use tracing::{error, warn};
|
||||
use uuid::Uuid;
|
||||
use xxhash_rust::xxh64;
|
||||
|
||||
use crate::disk::FileInfoVersions;
|
||||
use crate::file_meta_inline::InlineData;
|
||||
use crate::store_api::RawFileInfo;
|
||||
use crate::store_err::StorageError;
|
||||
use crate::{
|
||||
disk::error::DiskError,
|
||||
error::{Error, Result},
|
||||
store_api::{ErasureInfo, FileInfo, ObjectPartInfo, ERASURE_ALGORITHM},
|
||||
};
|
||||
|
||||
// XL header specifies the format
|
||||
pub static XL_FILE_HEADER: [u8; 4] = [b'X', b'L', b'2', b' '];
|
||||
// pub static XL_FILE_VERSION_CURRENT: [u8; 4] = [0; 4];
|
||||
|
||||
Reference in New Issue
Block a user