Skip to content

Commit

Permalink
Changed initial czar id number.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgates108 committed Mar 19, 2024
1 parent 58d1ae8 commit a3f1eca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/cconfig/CzarConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,8 @@ class CzarConfig {
/// The unique identifier of the Czar instance, the real vale cannot be
/// acquired until later. Using a crazy initial value in hopes of highlighting
/// issues.
/// TODO: Maybe also use a flag to indicate it's been set?
/// TODO: Is this really the right place for this? (previously undefined)
qmeta::CzarId _czarId = 4'123'456'789;
qmeta::CzarId _czarId = std::numeric_limits<qmeta::CzarId>::max();

nlohmann::json _jsonConfig; ///< JSON-ified configuration

Expand Down
7 changes: 4 additions & 3 deletions src/xrdsvc/SsiService.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <cassert>
#include <chrono>
#include <iostream>
#include <ranges>
#include <string>
#include <stdexcept>
#include <stdlib.h>
Expand Down Expand Up @@ -179,9 +180,9 @@ SsiService::SsiService(XrdSsiLogger* log) {
StreamBuffer::setMaxTotalBytes(bufferMaxTotalBytes);

// Set thread pool size.
unsigned int poolSize =
std::max(wsched::BlendScheduler::getMinPoolSize(),
std::max(workerConfig->getThreadPoolSize(), thread::hardware_concurrency()));
unsigned int poolSize = ranges::max({wsched::BlendScheduler::getMinPoolSize(),
workerConfig->getThreadPoolSize(), thread::hardware_concurrency()});

unsigned int maxPoolThreads = max(workerConfig->getMaxPoolThreads(), poolSize);

// poolSize should be greater than either GroupScheduler::maxThreads or ScanScheduler::maxThreads
Expand Down

0 comments on commit a3f1eca

Please sign in to comment.