1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

update fstab changes

This commit is contained in:
david hill
2016-04-20 16:38:10 -05:00
parent 010c3d08b1
commit aad09ed57b
4 changed files with 34 additions and 22 deletions

View File

@@ -6904,7 +6904,6 @@ namespace oam
//current amazon max dbroot id support = 190;
string PMdeviceName = "/dev/sd";
string amazondeviceName = "/dev/xvd";
string deviceLetter[] = {"g","h","i","j","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","end"};
/***************************************************************************
@@ -6917,6 +6916,16 @@ namespace oam
storageID_t Oam::getAWSdeviceName( const int dbrootid)
{
string amazondeviceName = "/dev/xvd";
try {
getSystemConfig( "AmazonDeviceName", amazondeviceName );
}
catch(...)
{}
if ( amazondeviceName.empty() || amazondeviceName == "" )
amazondeviceName = "/dev/xvd";
//calulate id numbers from DBRoot ID
int lid = (dbrootid-1) / 10;
int did = dbrootid - (dbrootid * lid);