Skip to content

Commit

Permalink
droplet: moved ordered_cbuf into stored/backends
Browse files Browse the repository at this point in the history
ordered_cbuf 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 fe64689
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/lib/CMakeLists.txt
Expand Up @@ -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 */
Expand Up @@ -26,6 +26,8 @@
* Ordered Circular buffer used for producer/consumer problem with pthread.
*/

namespace storagedaemon {

#define OQSIZE 10 /* # of pointers in the queue */

enum oc_peek_types {
Expand Down Expand Up @@ -93,3 +95,4 @@ inline ordered_circbuf::~ordered_circbuf()
{
destroy();
}
} /* namespace storagedaemon */

0 comments on commit fe64689

Please sign in to comment.