mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
62076b545e
Summary: Instead of having one "Dispatcher" type that the various backend overload, let's simply have a per-mount type dispatcher type. The previous model worked fine when EdenFS supported only one way of mounting a repository, but with NFS coming, unix platform will support both FUSE and NFS, making the Dispatcher overload nonsensical. As a behavioral change, the dispatcher lifetime and ownership is changed a bit. It used to live for the duration of the EdenMount object, but is now tied to the channel lifetime, as it is now owned by it. Reviewed By: kmancini Differential Revision: D26329477 fbshipit-source-id: 3959b90a4909e3ab0898caa308f54686f59a943c
23 lines
480 B
C++
23 lines
480 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include "eden/fs/prjfs/PrjfsDispatcher.h"
|
|
|
|
namespace facebook::eden {
|
|
PrjfsDispatcher::~PrjfsDispatcher() {}
|
|
|
|
PrjfsDispatcher::PrjfsDispatcher(EdenStats* stats) : stats_(stats) {}
|
|
|
|
EdenStats* PrjfsDispatcher::getStats() const {
|
|
return stats_;
|
|
}
|
|
} // namespace facebook::eden
|
|
|
|
#endif
|