MCPcopy Index your code
hub / github.com/questdb/questdb / extractConfDir

Method extractConfDir

core/src/main/java/io/questdb/Bootstrap.java:510–522  ·  view source on GitHub ↗
(byte[] buffer)

Source from the content-addressed store, hash-verified

508 }
509
510 private void extractConfDir(byte[] buffer) throws IOException {
511 copyResource(rootDirectory, false, buffer, "conf/date.formats", log);
512 try {
513 copyResource(rootDirectory, true, buffer, "conf/mime.types", log);
514 } catch (IOException exception) {
515 // conf can be read-only, this is not critical
516 if (exception.getMessage() == null || (!exception.getMessage().contains("Read-only file system") && !exception.getMessage().contains("Permission denied"))) {
517 throw exception;
518 }
519 }
520 copyResource(rootDirectory, false, buffer, "conf/server.conf", log);
521 copyLogConfResource(buffer);
522 }
523
524 private void extractSite0(String publicDir, byte[] buffer, String thisVersion) throws IOException {
525 try (final InputStream is = ServerMain.class.getResourceAsStream(PUBLIC_ZIP)) {

Callers 3

BootstrapMethod · 0.95
extractSiteMethod · 0.95
extractSite0Method · 0.95

Calls 4

copyResourceMethod · 0.95
copyLogConfResourceMethod · 0.95
getMessageMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected