Skip to content

Commit

Permalink
droplet: moved ordered_cbuf.cc into stored/backends
Browse files Browse the repository at this point in the history
ordered_cbuf.cc is no longer part of lib as it was only used by
chunked_device.

It is now directly linked into chunked_device
  • Loading branch information
pstorz committed Sep 21, 2018
1 parent 22d674d commit c43cbf7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/lib/CMakeLists.txt
Expand Up @@ -25,7 +25,7 @@ set(INCLUDE_FILES ../include/baconfig.h ../include/bareos.h
bsock_tcp.h btime.h btimers.h cbuf.h
crypto.h crypto_cache.h devlock.h dlist.h fnmatch.h
guid_to_name.h htable.h ini.h lex.h lib.h lockmgr.h
md5.h mem_pool.h message.h mntent_cache.h ordered_cbuf.h parse_conf.h
md5.h mem_pool.h message.h mntent_cache.h parse_conf.h
plugins.h qualified_resource_name_type_converter.h queue.h rblist.h
runscript.h rwlock.h scsi_crypto.h scsi_lli.h scsi_tapealert.h sellist.h
serial.h sha1.h smartall.h status.h tls.h tls_conf.h tree.h var.h
Expand All @@ -51,7 +51,7 @@ set (BAREOS_SRCS address_conf.cc alist.cc attr.cc attribs.cc base64.cc
crypto_none.cc crypto_nss.cc crypto_openssl.cc crypto_wrap.cc daemon.cc
devlock.cc dlist.cc edit.cc fnmatch.cc guid_to_name.cc hmac.cc htable.cc
jcr.cc json.cc lockmgr.cc md5.cc mem_pool.cc message.cc mntent_cache.cc
output_formatter.cc ordered_cbuf.cc passphrase.cc path_list.cc plugins.cc
output_formatter.cc passphrase.cc path_list.cc plugins.cc
bpoll.cc priv.cc
queue.cc rblist.cc runscript.cc rwlock.cc scan.cc scsi_crypto.cc scsi_lli.cc
sellist.cc serial.cc sha1.cc signal.cc smartall.cc tls.cc
Expand Down
2 changes: 1 addition & 1 deletion core/src/stored/backends/CMakeLists.txt
Expand Up @@ -41,7 +41,7 @@ target_link_libraries(bareossd-gfapi ${GFAPI_LIBRARIES})
endif()

if(${HAVE_DROPLET})
add_library(bareossd-chunked SHARED chunked_device.cc)
add_library(bareossd-chunked SHARED ordered_cbuf.cc chunked_device.cc)
target_link_libraries(bareossd-chunked ${DROPLET_LIBRARIES})
INSTALL(TARGETS bareossd-chunked DESTINATION ${backenddir})

Expand Down
2 changes: 1 addition & 1 deletion core/src/stored/backends/chunked_device.h
Expand Up @@ -87,7 +87,7 @@ struct chunk_descriptor {
bool opened; /* An open call was done */
};

#include "lib/ordered_cbuf.h"
#include "ordered_cbuf.h"

class chunked_device: public Device {
private:
Expand Down
Expand Up @@ -26,6 +26,7 @@
* Ordered Circular buffer used for producer/consumer problem with pthreads.
*/
#include "include/bareos.h"
namespace storagedaemon {
#include "ordered_cbuf.h"

/*
Expand Down Expand Up @@ -417,3 +418,4 @@ int ordered_circbuf::flush()

return 0;
}
} /* namespace storagedaemon */
File renamed without changes.

0 comments on commit c43cbf7

Please sign in to comment.