You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-455 Change resistribute database logic to move all segment files from designated dbroots to others in the system.
This commit is contained in:
@ -413,6 +413,7 @@ bool RedistributeControl::getStartOptions(messageqcpp::ByteStream& bs)
|
|||||||
bs >> fOptions;
|
bs >> fOptions;
|
||||||
|
|
||||||
bs >> n;
|
bs >> n;
|
||||||
|
fSourceList.clear();
|
||||||
fSourceList.reserve(n);
|
fSourceList.reserve(n);
|
||||||
for (uint32_t i = 0; i < n; i++)
|
for (uint32_t i = 0; i < n; i++)
|
||||||
{
|
{
|
||||||
@ -420,6 +421,7 @@ bool RedistributeControl::getStartOptions(messageqcpp::ByteStream& bs)
|
|||||||
fSourceList.push_back(d);
|
fSourceList.push_back(d);
|
||||||
}
|
}
|
||||||
bs >> n;
|
bs >> n;
|
||||||
|
fDestinationList.clear();
|
||||||
fDestinationList.reserve(n);
|
fDestinationList.reserve(n);
|
||||||
for (uint32_t i = 0; i < n; i++)
|
for (uint32_t i = 0; i < n; i++)
|
||||||
{
|
{
|
||||||
|
@ -173,20 +173,23 @@ int RedistributeControlThread::setup()
|
|||||||
vector<int>::iterator i = fControl->fSourceList.begin();
|
vector<int>::iterator i = fControl->fSourceList.begin();
|
||||||
for (; i != fControl->fSourceList.end(); i++)
|
for (; i != fControl->fSourceList.end(); i++)
|
||||||
{
|
{
|
||||||
// fSourceSet.insert(*i);
|
fSourceSet.insert(*i);
|
||||||
fDbrootSet.insert(*i);
|
fDbrootSet.insert(*i);
|
||||||
if (*i > fMaxDbroot)
|
if (*i > fMaxDbroot)
|
||||||
fMaxDbroot = *i;
|
fMaxDbroot = *i;
|
||||||
}
|
}
|
||||||
|
|
||||||
// vector<int>::iterator j = fControl->fDestinationList.begin();
|
vector<int>::iterator j = fControl->fDestinationList.begin();
|
||||||
// for (; j != fControl->fDestinationList.end(); j++)
|
for (; j != fControl->fDestinationList.end(); j++)
|
||||||
// {
|
{
|
||||||
// fTargetSet.insert(*j);
|
fTargetSet.insert(*j);
|
||||||
// fDbrootSet.insert(*j);
|
if (fDbrootSet.find(*j) == fDbrootSet.end())
|
||||||
|
{
|
||||||
|
fDbrootSet.insert(*j);
|
||||||
|
}
|
||||||
// if (*j > fMaxDbroot)
|
// if (*j > fMaxDbroot)
|
||||||
// fMaxDbroot = *j;
|
// fMaxDbroot = *j;
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
catch (const std::exception& ex)
|
catch (const std::exception& ex)
|
||||||
{
|
{
|
||||||
@ -262,9 +265,9 @@ int RedistributeControlThread::makeRedistributePlan()
|
|||||||
j != partitionMap.end(); j++)
|
j != partitionMap.end(); j++)
|
||||||
{
|
{
|
||||||
int dbroot = j->first.dbroot;
|
int dbroot = j->first.dbroot;
|
||||||
if (fDbrootSet.find(dbroot) != fDbrootSet.end())
|
if (fSourceSet.find(dbroot) != fSourceSet.end())
|
||||||
{
|
{
|
||||||
// only dbroot in source and target list needs attention
|
// only dbroot in source list needs attention
|
||||||
dbPartVec[dbroot].push_back(j->first.partition);
|
dbPartVec[dbroot].push_back(j->first.partition);
|
||||||
|
|
||||||
if (j->first.partition > maxPartitionId)
|
if (j->first.partition > maxPartitionId)
|
||||||
@ -274,98 +277,167 @@ int RedistributeControlThread::makeRedistributePlan()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// sort the partition
|
// sort the partitions
|
||||||
for (vector<vector<int> >::iterator k = dbPartVec.begin(); k != dbPartVec.end(); k++)
|
for (vector<vector<int> >::iterator k = dbPartVec.begin(); k != dbPartVec.end(); k++)
|
||||||
sort(k->begin(), k->end());
|
sort(k->begin(), k->end());
|
||||||
|
|
||||||
// divide the dbroots into the source and target sets
|
// divide the dbroots into the source and target sets
|
||||||
uint64_t average = totalPartitionCount / fDbrootSet.size();
|
uint64_t average = totalPartitionCount / fTargetSet.size();
|
||||||
uint64_t remainder = totalPartitionCount % fDbrootSet.size();
|
// Remainder is the number of partitions that must be spread across some
|
||||||
|
// of the dbroots such that no dbroot has more than average+1 partitions.
|
||||||
|
uint64_t remainder = totalPartitionCount % fTargetSet.size();
|
||||||
set<int> sourceDbroots;
|
set<int> sourceDbroots;
|
||||||
set<int> targetDbroots;
|
set<int> targetDbroots;
|
||||||
// list<pair<size_t, int> > targetList; // to be ordered by partition size
|
// list<pair<size_t, int> > targetList; // to be ordered by partition size
|
||||||
|
int64_t extra = remainder;
|
||||||
for (set<int>::iterator j = fDbrootSet.begin(); j != fDbrootSet.end(); ++j)
|
for (set<int>::iterator j = fDbrootSet.begin(); j != fDbrootSet.end(); ++j)
|
||||||
{
|
{
|
||||||
|
if (fTargetSet.find(*j) == fTargetSet.end())
|
||||||
|
{
|
||||||
|
// Not a target (removed on command line). Always a source.
|
||||||
|
sourceDbroots.insert(*j);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// If a dbroot has exactly average+1 partitions and there's extras to be had,
|
||||||
|
// then it is neither a source nor a target.
|
||||||
|
if ((dbPartVec[*j].size() == average+1) && extra)
|
||||||
|
{
|
||||||
|
--extra;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (dbPartVec[*j].size() > average)
|
if (dbPartVec[*j].size() > average)
|
||||||
{
|
{
|
||||||
// the last partition is not a candidate for redistribute.
|
// Sources are those dbroots with more than average partitions
|
||||||
dbPartVec[*j].pop_back();
|
|
||||||
sourceDbroots.insert(*j);
|
sourceDbroots.insert(*j);
|
||||||
}
|
}
|
||||||
else if (dbPartVec[*j].size() <= average)
|
else
|
||||||
{
|
{
|
||||||
|
// Targets are those with room ( <= average )
|
||||||
targetDbroots.insert(*j);
|
targetDbroots.insert(*j);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// At this point, there are two concepts of target. (1)Those fTargetSet, which is the
|
||||||
|
// set of dbroots the user wants partitions on and (2) those in targetDbroots, a subset of
|
||||||
|
// fTargetSet, which is those that actually have room, based on average, for more data.
|
||||||
|
|
||||||
// After redistribution, partition # is in [average, average+1].
|
// After redistribution, partition count for each dbroot is average or average+1.
|
||||||
// When remainder > # of source, some target will have (average+1) partitions.
|
// When remainder > 0, some targets will have (average+1) partitions.
|
||||||
int64_t extra = ((int64_t) remainder) - ((int64_t) sourceDbroots.size());
|
|
||||||
|
|
||||||
// loop through target dbroots
|
// loop through target dbroots and find partitions from sources to move to each.
|
||||||
set<int>::iterator k = sourceDbroots.begin();
|
set<int>::iterator sourceDbroot = sourceDbroots.begin();
|
||||||
int sourceCnt = sourceDbroots.size();
|
int sourceCnt = sourceDbroots.size();
|
||||||
for (set<int>::iterator j = targetDbroots.begin(); j != targetDbroots.end(); j++)
|
for (set<int>::iterator targetDbroot = targetDbroots.begin();
|
||||||
|
targetDbroot != targetDbroots.end();
|
||||||
|
++targetDbroot)
|
||||||
{
|
{
|
||||||
// check if this target will have average + 1 partitions.
|
// check if this target will have average + 1 partitions.
|
||||||
uint64_t e = 0;
|
uint64_t e = 0;
|
||||||
if (extra-- > 0)
|
if (extra-- > 0)
|
||||||
e = 1;
|
e = 1;
|
||||||
|
|
||||||
// the partitions already on the target dbroot
|
// A set of the partitions already on the target. We try not to move the same partition here.
|
||||||
set<int> parts(dbPartVec[*j].begin(), dbPartVec[*j].end());
|
set<int> targetParts(dbPartVec[*targetDbroot].begin(), dbPartVec[*targetDbroot].end());
|
||||||
if (parts.size() >= (average+e))
|
if (targetParts.size() >= (average+e))
|
||||||
continue; // no need to move any partition to this target
|
continue; // Don't move any partitions to this target
|
||||||
|
|
||||||
// partitions to be moved to this target
|
// partitions to be moved to this target
|
||||||
vector<PartitionInfo> planVec;
|
vector<PartitionInfo> planVec;
|
||||||
|
|
||||||
// looking for source partitions start from partition1
|
// looking for source partitions start from partition 0
|
||||||
bool done = false; // if target got enough partitions
|
bool done = false; // if target got enough partitions, set to true.
|
||||||
int loop = 0; // avoid infinity loop, if possible
|
int loop = 0; // avoid infinite loop. maxPartitionId is the last partition of one of the dbroots. It's a place to stop if all else fails.
|
||||||
while (!done && loop < maxPartitionId)
|
while (!done && loop <= maxPartitionId)
|
||||||
{
|
{
|
||||||
// maxPartitionId is the last partition of one of the dbroots, not a candidate.
|
for (int p = loop++; p <= maxPartitionId && !done; ++p)
|
||||||
for (int p = loop++; p < maxPartitionId && !done; p++)
|
|
||||||
{
|
{
|
||||||
bool found = false;
|
bool found = false;
|
||||||
if (parts.find(p) == parts.end())
|
if (targetParts.find(p) == targetParts.end()) // True if the partition is not on the target already
|
||||||
{
|
{
|
||||||
// try to find p in one of the source
|
// try to find partition p in one of the source dbroots
|
||||||
for (int x = 0; x < sourceCnt && !found; ++x)
|
for (int x = 0; x < sourceCnt && !found; ++x)
|
||||||
{
|
{
|
||||||
vector<int>& v = dbPartVec[*k];
|
vector<int>& sourceParts = dbPartVec[*sourceDbroot];
|
||||||
if (v.size() >= average)
|
// This partition needs to move if:
|
||||||
|
// 1) source still has more than average partitions, or
|
||||||
|
// 2) source is not a listed target (we want to empty source).
|
||||||
|
bool bNotTarget = fTargetSet.find(*sourceDbroot) == fTargetSet.end(); // true if source not in target list
|
||||||
|
if (sourceParts.size() >= average || bNotTarget)
|
||||||
{
|
{
|
||||||
vector<int>::iterator y = find(v.begin(), v.end(), p);
|
vector<int>::iterator y = find(sourceParts.begin(), sourceParts.end(), p);
|
||||||
if ((y != v.end()) &&
|
if ((y != sourceParts.end()) &&
|
||||||
(v.size() > parts.size())) // @bug4840, tie-break.
|
(sourceParts.size() > targetParts.size() || bNotTarget))
|
||||||
{
|
{
|
||||||
parts.insert(p);
|
targetParts.insert(p);
|
||||||
planVec.push_back(PartitionInfo(*k, p));
|
planVec.push_back(PartitionInfo(*sourceDbroot, p));
|
||||||
found = true;
|
found = true;
|
||||||
|
|
||||||
// update the source
|
// update the source
|
||||||
v.erase(y);
|
sourceParts.erase(y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (++k == sourceDbroots.end())
|
if (++sourceDbroot == sourceDbroots.end())
|
||||||
k = sourceDbroots.begin();
|
sourceDbroot = sourceDbroots.begin();
|
||||||
} // for source
|
} // for source
|
||||||
|
|
||||||
if (parts.size() >= (average+e))
|
if (targetParts.size() == (average+e))
|
||||||
done = true;
|
done = true;
|
||||||
} // !find p
|
} // !find p
|
||||||
} // for p
|
} // for p
|
||||||
} // while loop
|
} // while loop
|
||||||
|
|
||||||
// dump the plan for the target to file
|
// dump the plan for the target to file
|
||||||
dumpPlanToFile(i->first, planVec, *j);
|
dumpPlanToFile(i->first, planVec, *targetDbroot);
|
||||||
|
|
||||||
} // for target
|
} // for target
|
||||||
} // for tables
|
|
||||||
|
|
||||||
|
// It's possible that a source that is "removed" on the command line is not empty.
|
||||||
|
// This can happen if a partition exists on all dbroots.
|
||||||
|
|
||||||
|
// Loop through the sources, looking for dbroots that are not targets that also still contain partitions
|
||||||
|
for (set<int>::iterator sourceDbroot = sourceDbroots.begin();
|
||||||
|
sourceDbroot != sourceDbroots.end();
|
||||||
|
++sourceDbroot)
|
||||||
|
{
|
||||||
|
// Is this source in target list? If so, do nothing.
|
||||||
|
if (fTargetSet.find(*sourceDbroot) != fTargetSet.end())
|
||||||
|
continue;
|
||||||
|
vector<int>& sourceParts = dbPartVec[*sourceDbroot]; // Partitions still on source
|
||||||
|
|
||||||
|
// We can't erase from a vector we're iterating, so we need a kludge:
|
||||||
|
for (int p = 0; p <= maxPartitionId; ++p)
|
||||||
|
{
|
||||||
|
vector<int>::iterator sourcePart = find(sourceParts.begin(), sourceParts.end(), p);
|
||||||
|
if (sourcePart == sourceParts.end())
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// Look through targets to see which can accept this partition. Find the one with the least
|
||||||
|
// number of partitions. Someday we want to put with the dbroot having the fewest segments of
|
||||||
|
// the partition.
|
||||||
|
uint64_t partCount = std::numeric_limits<uint64_t>::max();
|
||||||
|
int tdbroot = 0;
|
||||||
|
for (set<int>::iterator targetDbroot = targetDbroots.begin();
|
||||||
|
targetDbroot != targetDbroots.end();
|
||||||
|
++targetDbroot)
|
||||||
|
{
|
||||||
|
if (dbPartVec[*targetDbroot].size() < partCount)
|
||||||
|
{
|
||||||
|
tdbroot = *targetDbroot;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (tdbroot == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
set<int> targetParts(dbPartVec[tdbroot].begin(), dbPartVec[tdbroot].end());
|
||||||
|
vector<PartitionInfo> planVec; // partitions to be moved to this target
|
||||||
|
targetParts.insert(p);
|
||||||
|
planVec.push_back(PartitionInfo(*sourceDbroot, p));
|
||||||
|
sourceParts.erase(sourcePart);
|
||||||
|
dumpPlanToFile(i->first, planVec, tdbroot);
|
||||||
|
} // for sourceParts
|
||||||
|
} // for source
|
||||||
|
} // for tables
|
||||||
}
|
}
|
||||||
catch (const std::exception& ex)
|
catch (const std::exception& ex)
|
||||||
{
|
{
|
||||||
@ -376,11 +448,10 @@ int RedistributeControlThread::makeRedistributePlan()
|
|||||||
{
|
{
|
||||||
ret = 2;
|
ret = 2;
|
||||||
}
|
}
|
||||||
|
displayPlan();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void RedistributeControlThread::dumpPlanToFile(uint64_t oid, vector<PartitionInfo>& vec, int target)
|
void RedistributeControlThread::dumpPlanToFile(uint64_t oid, vector<PartitionInfo>& vec, int target)
|
||||||
{
|
{
|
||||||
// open the plan file, if not already opened, to write.
|
// open the plan file, if not already opened, to write.
|
||||||
@ -421,6 +492,46 @@ void RedistributeControlThread::dumpPlanToFile(uint64_t oid, vector<PartitionInf
|
|||||||
fEntryCount += entryNum;
|
fEntryCount += entryNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RedistributeControlThread::displayPlan()
|
||||||
|
{
|
||||||
|
// start from the first entry
|
||||||
|
rewind(fControl->fPlanFilePtr);
|
||||||
|
|
||||||
|
ByteStream bs;
|
||||||
|
uint32_t entryId = 0;
|
||||||
|
long entrySize = sizeof(RedistributePlanEntry);
|
||||||
|
fControl->logMessage(string("Redistribution Plan:"));
|
||||||
|
while (entryId++ < fEntryCount)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
RedistributePlanEntry entry;
|
||||||
|
errno = 0;
|
||||||
|
size_t n = fread(&entry, entrySize, 1, fControl->fPlanFilePtr);
|
||||||
|
if (n != 1)
|
||||||
|
{
|
||||||
|
int e = errno;
|
||||||
|
ostringstream oss;
|
||||||
|
oss << "Failed to read from redistribute.plan: " << strerror(e) << " (" << e << ")";
|
||||||
|
throw runtime_error(oss.str());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Print this plan entry
|
||||||
|
ostringstream oss;
|
||||||
|
oss << "table oid " << entry.table << " partition " << entry.partition
|
||||||
|
<< " moves from dbroot " << entry.source << " to " << entry.destination << endl;
|
||||||
|
fControl->logMessage(oss.str());
|
||||||
|
}
|
||||||
|
catch (std::exception &e)
|
||||||
|
{
|
||||||
|
cout << "exception during display of plan: " << e.what() << endl;
|
||||||
|
}
|
||||||
|
catch (...)
|
||||||
|
{
|
||||||
|
cout << "exception during display of plan" << endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int RedistributeControlThread::executeRedistributePlan()
|
int RedistributeControlThread::executeRedistributePlan()
|
||||||
{
|
{
|
||||||
|
@ -99,7 +99,7 @@ class RedistributeControlThread
|
|||||||
|
|
||||||
int connectToWes(int);
|
int connectToWes(int);
|
||||||
void dumpPlanToFile(uint64_t, vector<PartitionInfo>&, int);
|
void dumpPlanToFile(uint64_t, vector<PartitionInfo>&, int);
|
||||||
|
void displayPlan();
|
||||||
|
|
||||||
uint32_t fAction;
|
uint32_t fAction;
|
||||||
oam::OamCache* fOamCache;
|
oam::OamCache* fOamCache;
|
||||||
@ -108,7 +108,7 @@ class RedistributeControlThread
|
|||||||
|
|
||||||
std::set<int> fSourceSet;
|
std::set<int> fSourceSet;
|
||||||
std::set<int> fTargetSet;
|
std::set<int> fTargetSet;
|
||||||
std::set<int> fDbrootSet;
|
std::set<int> fDbrootSet; // Union of fSourceSet and fTargetSet
|
||||||
int fMaxDbroot;
|
int fMaxDbroot;
|
||||||
uint32_t fEntryCount;
|
uint32_t fEntryCount;
|
||||||
std::string fErrorMsg;
|
std::string fErrorMsg;
|
||||||
|
@ -356,6 +356,7 @@ int RedistributeWorkerThread::buildEntryList()
|
|||||||
if (firstOid)
|
if (firstOid)
|
||||||
fSegments.insert(j->segmentNum);
|
fSegments.insert(j->segmentNum);
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
else if (j->dbRoot == target && j->partitionNum == partition)
|
else if (j->dbRoot == target && j->partitionNum == partition)
|
||||||
{
|
{
|
||||||
// the partition already exists on the target dbroot
|
// the partition already exists on the target dbroot
|
||||||
@ -367,7 +368,7 @@ int RedistributeWorkerThread::buildEntryList()
|
|||||||
logMessage(fErrorMsg, __LINE__);
|
logMessage(fErrorMsg, __LINE__);
|
||||||
return fErrorCode;
|
return fErrorCode;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
// workaround for HWM_0 of highest extents of the oid on target dbroot.
|
// workaround for HWM_0 of highest extents of the oid on target dbroot.
|
||||||
if (j->dbRoot == target)
|
if (j->dbRoot == target)
|
||||||
{
|
{
|
||||||
@ -1235,7 +1236,7 @@ void RedistributeWorkerThread::handleDataStart(SBS& sbs, size_t& size)
|
|||||||
ostringstream oss;
|
ostringstream oss;
|
||||||
oss << "=>redistributing: " << fileName << ", oid=" << dc.oid << ", db=" << dc.dbroot
|
oss << "=>redistributing: " << fileName << ", oid=" << dc.oid << ", db=" << dc.dbroot
|
||||||
<< ", part=" << dc.partition << ", seg=" << dc.segment << " from db="
|
<< ", part=" << dc.partition << ", seg=" << dc.segment << " from db="
|
||||||
<< fMsgHeader.destination; // fMsgHeader has swapped source and destination.
|
<< fMsgHeader.source;
|
||||||
logMessage(oss.str(), __LINE__);
|
logMessage(oss.str(), __LINE__);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1,241 +1,250 @@
|
|||||||
<!DOCTYPE Project SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpj.dtd">
|
<!DOCTYPE Project SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpj.dtd">
|
||||||
<Project
|
<Project
|
||||||
Version="10.0"
|
Version="10.0"
|
||||||
VendorName="SlickEdit"
|
VendorName="SlickEdit"
|
||||||
TemplateName="GNU C/C++"
|
TemplateName="GNU C/C++"
|
||||||
WorkingDir=".">
|
WorkingDir=".">
|
||||||
<Config
|
<Config
|
||||||
Name="Debug"
|
Name="Debug"
|
||||||
Type="gnuc"
|
Type="gnuc"
|
||||||
DebugCallbackName="gdb"
|
DebugCallbackName="gdb"
|
||||||
Version="1"
|
Version="1"
|
||||||
OutputFile="%bdWriteEngineServer"
|
OutputFile="%bdWriteEngineServer"
|
||||||
CompilerConfigName="Latest Version"
|
CompilerConfigName="Latest Version"
|
||||||
ObjectDir="/home/dhall/genii/writeengine/server/">
|
ObjectDir="/home/dhall/genii/writeengine/server/">
|
||||||
<Menu>
|
<Menu>
|
||||||
<Target
|
<Target
|
||||||
Name="Compile"
|
Name="Compile"
|
||||||
MenuCaption="&Compile"
|
MenuCaption="&Compile"
|
||||||
Dialog="_gnuc_options_form Compile"
|
Dialog="_gnuc_options_form Compile"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
OutputExts="*.o"
|
OutputExts="*.o"
|
||||||
SaveOption="SaveCurrent"
|
SaveOption="SaveCurrent"
|
||||||
RunFromDir="%rw">
|
RunFromDir="%rw">
|
||||||
<Exec CmdLine='g++ -c %xup %defd -g -o "%bd%n%oe" %i "%f"'/>
|
<Exec CmdLine='g++ -c %xup %defd -g -o "%bd%n%oe" %i "%f"'/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="Link"
|
Name="Link"
|
||||||
MenuCaption="&Link"
|
MenuCaption="&Link"
|
||||||
ShowOnMenu="Never"
|
ShowOnMenu="Never"
|
||||||
Dialog="_gnuc_options_form Link"
|
Dialog="_gnuc_options_form Link"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveCurrent"
|
SaveOption="SaveCurrent"
|
||||||
RunFromDir="%rw">
|
RunFromDir="%rw">
|
||||||
<Exec CmdLine='g++ %xup -g -o "%o" %f %libs'/>
|
<Exec CmdLine='g++ %xup -g -o "%o" %f %libs'/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="Build"
|
Name="Build"
|
||||||
MenuCaption="&Build"
|
MenuCaption="&Build"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveWorkspaceFiles"
|
SaveOption="SaveWorkspaceFiles"
|
||||||
RunFromDir="%rw"
|
RunFromDir="%rw"
|
||||||
ClearProcessBuffer="1">
|
ClearProcessBuffer="1">
|
||||||
<Exec CmdLine="make install_server"/>
|
<Exec CmdLine="make install_server"/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="Rebuild"
|
Name="Rebuild"
|
||||||
MenuCaption="&Rebuild"
|
MenuCaption="&Rebuild"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveWorkspaceFiles"
|
SaveOption="SaveWorkspaceFiles"
|
||||||
RunFromDir="%rw">
|
RunFromDir="%rw">
|
||||||
<Exec CmdLine=""/>
|
<Exec CmdLine=""/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="Debug"
|
Name="Debug"
|
||||||
MenuCaption="&Debug"
|
MenuCaption="&Debug"
|
||||||
Dialog="_gnuc_options_form Run/Debug"
|
Dialog="_gnuc_options_form Run/Debug"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveNone"
|
SaveOption="SaveNone"
|
||||||
RunFromDir="%rw"
|
RunFromDir="%rw"
|
||||||
ClearProcessBuffer="1">
|
ClearProcessBuffer="1">
|
||||||
<Exec CmdLine='vsdebugio -prog "%o"'/>
|
<Exec CmdLine='vsdebugio -prog "%o"'/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="Execute"
|
Name="Execute"
|
||||||
MenuCaption="E&xecute"
|
MenuCaption="E&xecute"
|
||||||
Dialog="_gnuc_options_form Run/Debug"
|
Dialog="_gnuc_options_form Run/Debug"
|
||||||
BuildFirst="1"
|
BuildFirst="1"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveWorkspaceFiles"
|
SaveOption="SaveWorkspaceFiles"
|
||||||
RunFromDir="%rw">
|
RunFromDir="%rw">
|
||||||
<Exec CmdLine='"%o"'/>
|
<Exec CmdLine='"%o"'/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="dash"
|
Name="dash"
|
||||||
MenuCaption="-"
|
MenuCaption="-"
|
||||||
Deletable="0">
|
Deletable="0">
|
||||||
<Exec/>
|
<Exec/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="GNU C Options"
|
Name="GNU C Options"
|
||||||
MenuCaption="GNU C &Options..."
|
MenuCaption="GNU C &Options..."
|
||||||
ShowOnMenu="HideIfNoCmdLine"
|
ShowOnMenu="HideIfNoCmdLine"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveNone">
|
SaveOption="SaveNone">
|
||||||
<Exec
|
<Exec
|
||||||
CmdLine="gnucoptions"
|
CmdLine="gnucoptions"
|
||||||
Type="Slick-C"/>
|
Type="Slick-C"/>
|
||||||
</Target>
|
</Target>
|
||||||
</Menu>
|
</Menu>
|
||||||
<List Name="GNUC Options">
|
<List Name="GNUC Options">
|
||||||
<Item
|
<Item
|
||||||
Name="LinkerOutputType"
|
Name="LinkerOutputType"
|
||||||
Value="Executable"/>
|
Value="Executable"/>
|
||||||
</List>
|
</List>
|
||||||
</Config>
|
</Config>
|
||||||
<Config
|
<Config
|
||||||
Name="Release"
|
Name="Release"
|
||||||
Type="gnuc"
|
Type="gnuc"
|
||||||
DebugCallbackName="gdb"
|
DebugCallbackName="gdb"
|
||||||
Version="1"
|
Version="1"
|
||||||
OutputFile="%bdWriteEngineServer"
|
OutputFile="%bdWriteEngineServer"
|
||||||
CompilerConfigName="Latest Version">
|
CompilerConfigName="Latest Version">
|
||||||
<Menu>
|
<Menu>
|
||||||
<Target
|
<Target
|
||||||
Name="Compile"
|
Name="Compile"
|
||||||
MenuCaption="&Compile"
|
MenuCaption="&Compile"
|
||||||
Dialog="_gnuc_options_form Compile"
|
Dialog="_gnuc_options_form Compile"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
OutputExts="*.o"
|
OutputExts="*.o"
|
||||||
SaveOption="SaveCurrent"
|
SaveOption="SaveCurrent"
|
||||||
RunFromDir="%rw">
|
RunFromDir="%rw">
|
||||||
<Exec CmdLine='g++ -c %xup %defd -o "%bd%n%oe" %i "%f"'/>
|
<Exec CmdLine='g++ -c %xup %defd -o "%bd%n%oe" %i "%f"'/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="Link"
|
Name="Link"
|
||||||
MenuCaption="&Link"
|
MenuCaption="&Link"
|
||||||
ShowOnMenu="Never"
|
ShowOnMenu="Never"
|
||||||
Dialog="_gnuc_options_form Link"
|
Dialog="_gnuc_options_form Link"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveCurrent"
|
SaveOption="SaveCurrent"
|
||||||
RunFromDir="%rw">
|
RunFromDir="%rw">
|
||||||
<Exec CmdLine='g++ %xup -o "%o" %f %libs'/>
|
<Exec CmdLine='g++ %xup -o "%o" %f %libs'/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="Build"
|
Name="Build"
|
||||||
MenuCaption="&Build"
|
MenuCaption="&Build"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveWorkspaceFiles"
|
SaveOption="SaveWorkspaceFiles"
|
||||||
RunFromDir="%rw"
|
RunFromDir="%rw"
|
||||||
ClearProcessBuffer="1">
|
ClearProcessBuffer="1">
|
||||||
<Exec CmdLine="make install_server"/>
|
<Exec CmdLine="make install_server"/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="Rebuild"
|
Name="Rebuild"
|
||||||
MenuCaption="&Rebuild"
|
MenuCaption="&Rebuild"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveWorkspaceFiles"
|
SaveOption="SaveWorkspaceFiles"
|
||||||
RunFromDir="%rw">
|
RunFromDir="%rw">
|
||||||
<Exec CmdLine=""/>
|
<Exec CmdLine=""/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="Debug"
|
Name="Debug"
|
||||||
MenuCaption="&Debug"
|
MenuCaption="&Debug"
|
||||||
Dialog="_gnuc_options_form Run/Debug"
|
Dialog="_gnuc_options_form Run/Debug"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveNone"
|
SaveOption="SaveNone"
|
||||||
RunFromDir="%rw"
|
RunFromDir="%rw"
|
||||||
ClearProcessBuffer="1">
|
ClearProcessBuffer="1">
|
||||||
<Exec CmdLine='vsdebugio -prog "%o"'/>
|
<Exec CmdLine='vsdebugio -prog "%o"'/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="Execute"
|
Name="Execute"
|
||||||
MenuCaption="E&xecute"
|
MenuCaption="E&xecute"
|
||||||
Dialog="_gnuc_options_form Run/Debug"
|
Dialog="_gnuc_options_form Run/Debug"
|
||||||
BuildFirst="1"
|
BuildFirst="1"
|
||||||
CaptureOutputWith="ProcessBuffer"
|
CaptureOutputWith="ProcessBuffer"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveWorkspaceFiles"
|
SaveOption="SaveWorkspaceFiles"
|
||||||
RunFromDir="%rw">
|
RunFromDir="%rw">
|
||||||
<Exec CmdLine='"%o"'/>
|
<Exec CmdLine='"%o"'/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="dash"
|
Name="dash"
|
||||||
MenuCaption="-"
|
MenuCaption="-"
|
||||||
Deletable="0">
|
Deletable="0">
|
||||||
<Exec/>
|
<Exec/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target
|
<Target
|
||||||
Name="GNU C Options"
|
Name="GNU C Options"
|
||||||
MenuCaption="GNU C &Options..."
|
MenuCaption="GNU C &Options..."
|
||||||
ShowOnMenu="HideIfNoCmdLine"
|
ShowOnMenu="HideIfNoCmdLine"
|
||||||
Deletable="0"
|
Deletable="0"
|
||||||
SaveOption="SaveNone">
|
SaveOption="SaveNone">
|
||||||
<Exec
|
<Exec
|
||||||
CmdLine="gnucoptions"
|
CmdLine="gnucoptions"
|
||||||
Type="Slick-C"/>
|
Type="Slick-C"/>
|
||||||
</Target>
|
</Target>
|
||||||
</Menu>
|
</Menu>
|
||||||
<List Name="GNUC Options">
|
<List Name="GNUC Options">
|
||||||
<Item
|
<Item
|
||||||
Name="LinkerOutputType"
|
Name="LinkerOutputType"
|
||||||
Value="Executable"/>
|
Value="Executable"/>
|
||||||
</List>
|
</List>
|
||||||
</Config>
|
</Config>
|
||||||
<Files>
|
<Files>
|
||||||
<Folder
|
<Folder
|
||||||
Name="Source Files"
|
Name="Source Files"
|
||||||
Filters="*.c;*.C;*.cc;*.cpp;*.cp;*.cxx;*.c++;*.prg;*.pas;*.dpr;*.asm;*.s;*.bas;*.java;*.cs;*.sc;*.e;*.cob;*.html;*.rc;*.tcl;*.py;*.pl;*.d">
|
Filters="*.c;*.C;*.cc;*.cpp;*.cp;*.cxx;*.c++;*.prg;*.pas;*.dpr;*.asm;*.s;*.bas;*.java;*.cs;*.sc;*.e;*.cob;*.html;*.rc;*.tcl;*.py;*.pl;*.d">
|
||||||
<F N="we_brmrprtparser.cpp"/>
|
<F N="we_brmrprtparser.cpp"/>
|
||||||
<F N="we_cleartablelockcmd.cpp"/>
|
<F N="we_cleartablelockcmd.cpp"/>
|
||||||
<F N="we_cpifeederthread.cpp"/>
|
<F N="we_cpifeederthread.cpp"/>
|
||||||
<F N="we_dataloader.cpp"/>
|
<F N="we_dataloader.cpp"/>
|
||||||
<F N="we_ddlcommandproc.cpp"/>
|
<F N="we_ddlcommandproc.cpp"/>
|
||||||
<F N="we_dmlcommandproc.cpp"/>
|
<F N="we_dmlcommandproc.cpp"/>
|
||||||
<F N="we_msg1.cpp"/>
|
<F N="we_msg1.cpp"/>
|
||||||
<F N="we_msg2.cpp"/>
|
<F N="we_msg2.cpp"/>
|
||||||
<F N="we_observer.cpp"/>
|
<F N="we_observer.cpp"/>
|
||||||
<F N="we_readthread.cpp"/>
|
<F N="we_readthread.cpp"/>
|
||||||
<F N="we_server.cpp"/>
|
<F N="../redistribute/we_redistribute.cpp"/>
|
||||||
</Folder>
|
<F N="../redistribute/we_redistributecontrol.cpp"/>
|
||||||
<Folder
|
<F N="../redistribute/we_redistributecontrolthread.cpp"/>
|
||||||
Name="Header Files"
|
<F N="../redistribute/we_redistributeworkerthread.cpp"/>
|
||||||
Filters="*.h;*.H;*.hh;*.hpp;*.hxx;*.inc;*.sh;*.cpy;*.if">
|
<F N="we_server.cpp"/>
|
||||||
<F N="we_brmrprtparser.h"/>
|
</Folder>
|
||||||
<F N="we_cleartablelockcmd.h"/>
|
<Folder
|
||||||
<F N="we_cpifeederthread.h"/>
|
Name="Header Files"
|
||||||
<F N="we_dataloader.h"/>
|
Filters="*.h;*.H;*.hh;*.hpp;*.hxx;*.inc;*.sh;*.cpy;*.if">
|
||||||
<F N="we_ddlcommandproc.h"/>
|
<F N="we_brmrprtparser.h"/>
|
||||||
<F N="we_ddlcommon.h"/>
|
<F N="we_cleartablelockcmd.h"/>
|
||||||
<F N="we_dmlcommandproc.h"/>
|
<F N="we_cpifeederthread.h"/>
|
||||||
<F N="we_message_handlers.h"/>
|
<F N="we_dataloader.h"/>
|
||||||
<F N="we_messages.h"/>
|
<F N="we_ddlcommandproc.h"/>
|
||||||
<F N="we_observer.h"/>
|
<F N="we_ddlcommon.h"/>
|
||||||
<F N="we_readthread.h"/>
|
<F N="we_dmlcommandproc.h"/>
|
||||||
</Folder>
|
<F N="we_message_handlers.h"/>
|
||||||
<Folder
|
<F N="we_messages.h"/>
|
||||||
Name="Resource Files"
|
<F N="we_observer.h"/>
|
||||||
Filters="*.ico;*.cur;*.dlg"/>
|
<F N="we_readthread.h"/>
|
||||||
<Folder
|
<F N="../redistribute/we_redistribute.h"/>
|
||||||
Name="Bitmaps"
|
<F N="../redistribute/we_redistributecontrol.h"/>
|
||||||
Filters="*.bmp"/>
|
<F N="../redistribute/we_redistributecontrolthread.h"/>
|
||||||
<Folder
|
<F N="../redistribute/we_redistributedef.h"/>
|
||||||
Name="Other Files"
|
<F N="../redistribute/we_redistributeworkerthread.h"/>
|
||||||
Filters="">
|
</Folder>
|
||||||
<F
|
<Folder
|
||||||
N="Makefile"
|
Name="Resource Files"
|
||||||
Type="Makefile"/>
|
Filters="*.ico;*.cur;*.dlg"/>
|
||||||
</Folder>
|
<Folder
|
||||||
</Files>
|
Name="Bitmaps"
|
||||||
|
Filters="*.bmp"/>
|
||||||
|
<Folder
|
||||||
|
Name="Other Files"
|
||||||
|
Filters="">
|
||||||
|
<F
|
||||||
|
N="Makefile"
|
||||||
|
Type="Makefile"/>
|
||||||
|
</Folder>
|
||||||
|
</Files>
|
||||||
</Project>
|
</Project>
|
||||||
|
Reference in New Issue
Block a user