chore: make mysql server version changable (#4531)

This commit is contained in:
LFC
2024-08-09 11:43:43 +08:00
committed by GitHub
parent 4c1a3f29c0
commit 7dd20b0348

View File

@@ -221,6 +221,10 @@ impl MysqlInstanceShim {
impl<W: AsyncWrite + Send + Sync + Unpin> AsyncMysqlShim<W> for MysqlInstanceShim { impl<W: AsyncWrite + Send + Sync + Unpin> AsyncMysqlShim<W> for MysqlInstanceShim {
type Error = error::Error; type Error = error::Error;
fn version(&self) -> String {
std::env::var("GREPTIMEDB_MYSQL_SERVER_VERSION").unwrap_or_else(|_| "8.4.2".to_string())
}
fn salt(&self) -> [u8; 20] { fn salt(&self) -> [u8; 20] {
self.salt self.salt
} }