zhztheplayer commented on code in PR #7853:
URL: https://github.com/apache/incubator-gluten/pull/7853#discussion_r1834179350
##########
cpp/velox/compute/VeloxBackend.cc:
##########
@@ -195,7 +195,7 @@ void VeloxBackend::initJolFilesystem() {
}
void VeloxBackend::initCache() {
- if (backendConf_->get<bool>(kVeloxCacheEnabled, false)) {
+ if (backendConf_->get<bool>(kVeloxCacheEnabled, false) && !isDriver_) {
Review Comment:
Could just change from the caller code, something like:
```
if (!isDriver_) {
initCache();
}
...
```
Would be enough and more readable.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]